<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>优惠券列表</title>

    <link rel="stylesheet" href="/Public/admin/css/liandong.css"/>
    <link rel="stylesheet" href="/Public/admin/css/ace.min.css"/>
    <link rel="stylesheet" href="/Public/admin/css/plugins/colorbox.css"/>

    <link rel="stylesheet" type="text/css" href="/Public/admin/css/gxxj/normalize.css">
    <link rel="stylesheet" type="text/css" href="/Public/admin/css/gxxj/public_O.css">
    <style type="text/css">
        html {
            background: #fff;
            height: 100%;
        }
    </style>
</head>
<body style="padding:10px;">

<div>
    <table class="search_table" style="width: 100%">
        <tr>
            <th>优惠券编号</th>
            <th>优惠名称</th>
            <th>抵扣金额</th>
            <th>发放时间</th>
            <th>
                状态
            </th>
            <th>操作</th>
        </tr>
        <volist name="data" id="vo">

            <tr>
                <td><{$vo.coupon_id}></td>
                <td><{$vo.coupon_name}></td>
                <td><{$vo.money}></td>
                <td><{$vo.endtime}></td>
                <td><{$vo.status_a}></td>
                <if condition="($vo.status neq '1')">
                    <td>
                        <span class="bg_color_green color_white table_span"
                              style="font-size: small; background-color: #7F7F7F ">已发放</span>
                    </td>
                    <else/>
                    <!--  <td>
                    <a> <span class="bg_color_green color_white table_span" style="font-size: small "
                               onclick="money_send('$vo.id')">发放</span></a>
                     </td>-->
                </if>
            </tr>
        </volist>
    </table>
    <div class="dataTables_paginate paging_simple_numbers">
        <ul class="pagination">
            <if condition="$tol gt 10">
                <{$fpage}>
            </if>
        </ul>
    </div>
</div>


<script type="text/javascript" src="/Public/admin/js/jquery.min.js"></script>

<script src="/Public/admin/js/layer/layer.js"></script>
<script src="/Public/admin/js/layui/layui.js"></script>

<script>

    function money_send(id) {

//
//        var url = "<{$SRVER_NAME}>/admin.php/UserInfo/cancel_apt";
//        var index = layer.load(1, {
//            shade: [0.1, '#fff'] //0.1透明度的白色背景
//        });
//        $.post(url, {id: id}, function (data) {
//            console.log('11111111', data);
//            if (data.code == "1001") {
//                layer.alert(data.result, {title: '提示框', icon: 1}, function () {
//
//                    layer.close(index);
//                });
//            }
//            else {
//                layer.alert(data.result, {title: '提示框', icon: 2});
//                layer.close(index);
//            }
//
//        });
//        layer.close(index);


    }
</script>


</body>
</html>